<template>
  <div class="home">
    <el-button type="primary" @click="routerTo(navigators['input-tag'])">Input Tag</el-button>
  </div>
</template>

<script>
export default {
  name: "Home",
  data () {
    return {
      navigators: {
        'input-tag': {
          name: 'InputTagTest',
          path: 'input-tag-test'
        }
      }
    }
  },
  methods: {
    // 路由跳转
    routerTo (router) {
      this.$router.push({ name: router.name })
    }
  },
  components: {},
}
</script>
